<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="utf-8" lang="utf-8">
<head>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title><?php echo $_title?> | Church12222222</title>
	<link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/common.css" />
	<link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/jquery.ui.lastest.css" />
	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/ie6.css" /><![endif]-->
	<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/ie7.css" /><![endif]-->	
	
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.lastest.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.ui.lastest.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/publisher.js"></script>

	<!--[if IE 6]>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/DD_belatedPNG_0.0.8a.js"></script>
	<script type="text/javascript">DD_belatedPNG.fix('.png24');</script>

	<script type="text/javascript">
		try{
			document.execCommand('BackgroundImageCache', false, true);
		}catch(e){}
	</script>

	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/minmax.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/fixed-1.8.js"></script>
	<![endif]-->
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/gnb.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/v_navi.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/tree.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.cookie.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.hotkeys.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.jstree.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/common.js"></script>
</head>

<body id="sub" class="topEnd">
<!--[s] Header -->
<div id="header">
	<div class="bg_black"><!-- 검정 배경 --></div>
	<h1><a href="/chmanager/index"><img src="/theme/<?=$_theme?>/images/common/h1_logo.gif" alt="church." /></a></h1>
	<!--[s] 한 줄 공지 -->
	<dl>
		<dt><strong>공지사항</strong></dt>
		<dd>서버 점검으로 인한 접속제한안내</dd>
	</dl>
	<!--[e] 한 줄 공지 -->
	<!--[s] 상단 링크 -->
	<div class="top_link">
		<ul class="c_box">
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_sch.gif" alt="검색" /></a></li>
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_web.gif" alt="PC" /></a></li>
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_mobile.gif" alt="Mobile" /></a></li>
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_link.gif" alt="링크" /></a></li>
		</ul>
	</div>
	<!--[e] 상단 링크 -->
	<!--[s] Gnb -->
	<div id="menu_gnb">
		<ul class="c_box">
		<?php
			//Get the XML document loaded into a variable
			$xml = file_get_contents('./theme/'.$_theme.'/admin.xml');
			//Set up the parser object
			$parser = new XMLParser($xml);

			//Work the magic...
			$parser->Parse();
			$_topIndex = 0;
			$_leftIndex =0; 	
			
			foreach($parser->document->menu as $menu){
				echo "<li><a href=\"".$menu->hyperlink[0]->tagData."\"><img src=\"/theme/{$_theme}/images/common/{$menu->menuimage[0]->tagData}\" alt=\"{$menu->menuname[0]->tagData}\" /></a></li>\n";				
				foreach($parser->document->menu[$_topIndex]->menuitem as $left) {	
					if(!strcmp($_group,$menu->group[0]->tagData)){
						$_leftIndex = $_topIndex;
					break;	
					}
					
					
				}
				$_topIndex++;	
				
			}
			?>
		</ul>
	</div>
	<!--[e] Gnb -->
</div>
<!--[e] Header -->

<!--[s] Container -->
<div id="container" class="c_box">
	<!--[s] 페이지 로케이션 -->
	<div class="pageLocation">
		<ul class="c_box">
			<li class="home">HOME</li>
			<li>사이트관리</li>
			<li><?php echo $_title?></li>
		</ul>
	</div>
	<!--[e] 페이지 로케이션 -->

	<!--[s] 좌측 영역 -->
	<div id="con_left">
		<!--[s] Lnb -->
		<div id="menu_lnb">
			<h2><img src="/theme/<?=$_theme?>/images/common/h2_lnb_title01.gif" alt="사이트관리" /></h2>
			<p class="icon"><a href="javascript:void(0);" class="icon_m03">사이트관리</a></p>
			<ul>
			<?php
				foreach($parser->document->menu[$_leftIndex]->menuitem as $menu){
					//$_on = (strpos($menu->hyperlink[0]->tagData,uri_string()) > 0) ? 'on' : '';
					$_on = (!strcmp($menu->menuitemname[0]->tagData,$_title)) ? 'on' : '';
					echo "<li><a href=\"".$menu->hyperlink[0]->tagData."\" class=\"{$_on}\">".$menu->menuitemname[0]->tagData."</a></li>\n";		   				
				}
			?>
			</ul>
		</div>
		<!--[e] Lnb -->

		<!--[s] Banner -->
		<div class="bannerType01 mt10">
			<h3><img src="/theme/<?=$_theme?>/images/common/h3_lnb_banner01.gif" alt="사이트 이용현황" /></h3>
			<p class="icon"><a href="javascript:void(0);" class="icon_m01">사이트 이용현황</a></p>
		</div>
		<div class="bannerType01 mt1">
			<h3><img src="/theme/<?=$_theme?>/images/common/h3_lnb_banner02.gif" alt="부가서비스 이용현황" /></h3>
			<p class="icon"><a href="javascript:void(0);" class="icon_m01">부가서비스 이용현황</a></p>
		</div>

		<div class="banner">
			<ul>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner01.gif" alt="쳐치 길라잡이" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner02.gif" alt="쳐치 등록요청" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner03.gif" alt="쳐치 제작의뢰" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner04.gif" alt="쳐치 광고문의" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner05.gif" alt="쳐치 뉴스레터" /></a></li>
			</ul>
		</div>
		<!--[e] Banner -->
	</div>
	<!--[e] 좌측 영역 -->

	<!--[s] 센터 영역 -->
	<div id="con_center">
	<?php 
		$this->load->view($_content);
	?>
	</div>
	<!--[e] 센터 영역 -->
</div>
<!--[e] Container -->

<!--[s] Footer -->
<div id="footer">
	<div class="txt">
		<p><img src="/theme/<?=$_theme?>/images/common/footer_logo.gif" alt="church." /></p>
		<address class="mt6"><img src="/theme/<?=$_theme?>/images/common/footer_copy.gif" alt="COPYRIGHT © CHURCH. ALL RIGHTS RESERUED. Design by WEBTER Communication, Inc." /></address>
	</div>
	<ul class="c_box">
		<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/footer_home.gif" alt="home" /></a></li>
		<li><a href="javascript:scrollTopAc();"><img src="/theme/<?=$_theme?>/images/common/footer_top.gif" alt="top" /></a></li>
	</ul>
</div>
<!--[e] Footer -->
</body>
</html>